﻿class Battery
{
    private string model;
    private int hoursIdle;
    private int hoursTalk;
    private int batteryType;
    public Battery()
    {
        model = "";
        hoursIdle = 0;
        hoursTalk = 0;
        batteryType = 0;
    }
    public Battery(string model, int hoursIdle, int hoursTalk, BatteryType bType)
    {
        this.model = model;
        this.hoursTalk = hoursTalk;
        this.hoursIdle = hoursIdle;
        batteryType = (int)bType;
    }
    public string Model
    {
        get { return model; }
    }
    public int HoursIdle
    {
        get { return hoursIdle; }
    }
    public int HoursTalk
    {
        get { return hoursTalk; }
    }
    public int BatteryType
    {
        get { return batteryType; }
    }
    public override string ToString()
    {
        return "Model: " + model + ", hoursIdle: " + hoursIdle + ", hoursTalk: " + hoursTalk + ", Battery Type: " + (BatteryType)batteryType;
    }
}

